package com.zygvip.demand.service.impl;

import com.zygvip.demand.dao.TargetUserDao;
import com.zygvip.demand.entity.TargetUser;
import com.zygvip.demand.service.TargetUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Demo class
 *
 * @author dup
 * @Description: dup
 * @date 18:41 2018/4/17
 */
@Service
public class TargetUserServiceImpl implements TargetUserService {

    @Autowired
    private TargetUserDao targetUserDao;

    @Override
    public TargetUser addTargetUser(TargetUser targetUser) {
        targetUser.setCreateTime(new Date());
        targetUser = targetUserDao.save(targetUser);
        return targetUser;
    }
}
